import React, { Component } from 'react'
import { Link } from 'react-router'
import { NavBar, Icon } from 'antd-mobile';

export default class Layout extends Component {

  render() {
    return (
    	<div>
	    	<NavBar leftContent="返回"
	    	  rightContent={[<Icon key="0" type="user" />, <Icon key="1" type="search" />, <Link key="2" to="/inbox"><Icon  type="plus" /></Link>]}
	    	>导航</NavBar>
    		{this.props.children}
        <footer>
          <div className="error">{__DEV__ ? 'dev' : 'other'}</div>
        </footer>
    	</div>
      


    )
  }
}
